# -*- coding:utf-8 -*-
from application import app

'''
统一拦截处理和统一错误处理
'''
from web.interceptors.AuthInterceptor import *
from web.interceptors.ErrorInterceptor import *

'''
蓝图功能，对所有的url进行蓝图功能配置
'''
from web.controllers.admin.index import route_index
from web.controllers.admin.static import route_static
from web.controllers.admin.role.Role import route_role
from web.controllers.admin.user.User import route_user
from web.controllers.admin.menu.Menu import route_menu
# 以下为业务模块
from web.controllers.goods.Goods import route_goods

'''
注册蓝图访问地址
'''
app.register_blueprint(route_index, url_prefix="/")
app.register_blueprint(route_static, url_prefix="/static")
app.register_blueprint(route_role, url_prefix="/admin/role")
app.register_blueprint(route_user, url_prefix="/admin/user")
app.register_blueprint(route_menu, url_prefix="/admin/menu")
# 以下为业务模块
app.register_blueprint(route_goods, url_prefix="/goods")
